package com.fengquan.slicing.application;

import com.fengquan.slicing.dto.XmlData;
import com.fengquan.slicing.dto.liuData;
import org.bson.Document;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/************************************************************
 * 作    者: P622311(冯泉)
 * 日    期: 2021/3/18 12:07
 * 用途说明: (XXX)
 ************************************************************/
public interface IFileApplication {

    /**
     * 合流
     * @param md5
     * @throws Exception
     */
    void confluence(String md5) throws Exception;

    /**
     * 分片上传
     * @param data
     * @param file
     * @return
     * @throws Exception
     */
    Map update(XmlData data, MultipartFile file) throws Exception;

    /**
     * 块下载
     * 下载mongo文件
     * @param md5
     * @return
     */
    void download3(String md5, HttpServletRequest request,
                       HttpServletResponse response) throws Exception;

    /**
     * 下载文件信息
     * @param md5
     * @return
     */
    List fileInfo(String md5);
}
